//
//  CircleAvator.swift
//  MiaoTan
//
//  Created by 于航 on 2024/9/16.
//

import SwiftUI

struct CircleAvator: View {
    var photo : String
    var size : Double
    var body: some View {
        Image(photo)
            .resizable()
            .aspectRatio(contentMode: .fill)
            .frame(width: size, height: size)
            .cornerRadius(50)
            .overlay(
                Circle().stroke(.white, lineWidth: 5)
            )
            .shadow(radius: 5)
    }
}

#Preview {
    CircleAvator(photo: "Cat3", size: 100)
}
